<extend name="Public:mainbase" />
<block name="content">
<style>
.coolbg2 {
	border: 1px solid #000000;
	background-color: #F2F5E9;
	height: 18px
}
.coolbt2 {
	border-left: 2px solid #EFEFEF;
	border-top: 2px solid #EFEFEF;
	border-right: 2px solid #ACACAC;
	border-bottom: 2px solid #ACACAC;
	background-color: #F7FCDA
}
.nbline {
	border-bottom: 1px solid #d6d6d6;
	background-color: #FFFFFF;

}
.bline2 {
	border-bottom: 1px solid #d6d6d6;
	background-color: #F9FCEF;
}

</style>
<form method="post" action="">
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center">
  <tbody>
    <tr>
      <td height="28" background="__PUBLIC__/images/tbg.gif" style="padding-left:10px;"> <div style="float:left"> <strong>网站栏目管理 </strong> </div>
        <div style="float:right;padding-right:6px;"> <!--<a href="catalog_add.php?dopost=quick" class="np coolbg">批量增加栏目</a> <a href="catalog_do.php?dopost=upcatcache" class="np coolbg">更新栏目缓存</a> <a href="makehtml_list.php" class="np coolbg">更新栏目HTML</a> --> </div></td>
    </tr>
    <tr>
      <td height="28" bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
              <td width="51%"><a href="javascript:void(0)" class="btn btn-sm btn-info addtopmen" data-toggle="modal" data-target="#addsub">增加顶级栏目</a></td>
              <td width="49%" align="right"><a href="javascript:void(0);">[展开全部]</a></td>
            </tr>
          </tbody>
        </table></td>
    </tr>

  <tr>
    <td height="120" bgcolor="#FFFFFF" valign="top">
	  <volist name="type" id="typeValue">
      <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tbody>
          <tr>
            <td style="background-color:#FBFCE2;" width="2%" class="bline fc"><img style="cursor:pointer" class="img2" src="__PUBLIC__/images/dedecontract.gif" width="11" height="11"></td>
            <td style="background-color:#FBFCE2;" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td width="20%"  height="36" id="menu{$typeValue['scid']}">
                    <input class="np" type="checkbox" name="cids[{$typeValue['scid']}]" value="{$typeValue['scid']}" >
                    <eq name="typeValue['ishide']" value="0"><span style="color:Red">[隐藏]</span></eq>
                     <i class="{$typeValue['icon']}"></i> <input type="text" value="{$typeValue['channelname']}" name="channelname[{$typeValue['scid']}]" /> [ID:{$typeValue['scid']}]</td>

                     <td>
                       控制器：<input type="text" name="controller[{$typeValue['scid']}]" value="{$typeValue['controllername']}">
                       &nbsp;&nbsp;&nbsp;&nbsp;
                       方法：<input type="text" name="action[{$typeValue['scid']}]" value="{$typeValue['actionname']}">
                       <input type="hidden" name="icon[{$typeValue['scid']}]" value="{$typeValue['icon']}">
                       <input type="hidden" name='scid[{$typeValue['scid']}]' value="{$typeValue['scid']}">
                     </td>
                    <td align="right">
                      <a href="javascript:void(0);" data-id="{$typeValue['scid']}" data-icon="{$typeValue['icon']}" data-toggle="modal" data-target="#setuserAuthbox">修改图标</a>
                       | 
                      <a href="javascript:void(0);" data-id="{$typeValue['scid']}" data-cname="{$typeValue['channelname']}" data-toggle="modal" data-target="#addsub">增加子选项</a> <!-- | <a href="catalog_do.php?dopost=moveCatalog&amp;typeid=2">移动</a> -->
                        | 
                      <a href="{:U('get_del_column')}?id={$typeValue['scid']}" onclick="return confirm(' 是否确定删除此栏目？')">删除</a>&nbsp;
                      <input type="text" name="sortrank[{$typeValue['scid']}]" value="{$typeValue['sort']}" style="width:25px;height:20px">
                      </td>
                  </tr>
                </tbody>
              </table></td>
          </tr>
          <tr>
            <td colspan="2" class="suns2">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td class="nbline">
						<volist name="typeValue['subMenu']" id="subValue">
                    	<table width="98%" border="0" cellspacing="0" cellpadding="0" height="100%">
                        <tbody>
                          <tr onmousemove="javascript:this.bgColor='#FAFCE0';" onmouseout="javascript:this.bgColor='#FFFFFF';" bgcolor="#FFFFFF">
                            <td width="21%"  height="36">
                               <div style="padding-left: 30px"><eq name="subValue['ishide']" value="0"><span style="color:Red">[隐藏]</span></eq> <input type="text" value="{$subValue['channelname']}" name="channelname[{$subValue['scid']}]" /> [ID:{$subValue['scid']}]</div>
                            </td>
                             <td>控制器：
                             <input type="text" name="controller[{$subValue['scid']}]" value="{$subValue['controllername']}">
                             &nbsp;&nbsp;&nbsp;&nbsp;
                             方法：<input type="text" name="action[{$subValue['scid']}]"  value="{$subValue['actionname']}">
                              <input type="hidden" name='scid[{$subValue['scid']}]' value="{$subValue['scid']}">
                             </td>
                            <td align="right"><a href="javascript:void(0)" data-id="{$subValue['scid']}"  data-spid="{$subValue['spid']}" data-toggle="modal" data-target="#moveColumn">移动</a>|<a href="{:U('get_del_column')}?id={$subValue['scid']}" onclick="return confirm(' 是否确定删除此栏目？')">删除</a>&nbsp;
                              <input type="text" name="sortrank[{$subValue['scid']}]" value="{$subValue['sort']}" style="width:25px;height:20px"></td>
                          </tr>
                        </tbody>
                      </table>
					  </volist>
                    </td>
                  </tr>                  
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
		
	</volist>
<br>

</td>
  </tr>
  <tr>
    <td height="36" bgcolor="#FFFFFF" align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
          <td align="left">
		<!--   <a href="" class="btn btn-sm btn-info">全选</a> -->
          </td>
            <td align="right">
              <input type="submit" name="sb1" value="保存修改" style="width:70px" class="btn btn-sm btn-danger" >
              <!-- <input type="button" name="sb4" value="获取JS" style="width:70px" class="btn btn-sm btn-default" >
              <input type="button" name="sb2" value="更新栏目HTML" style="width:90px" class="btn btn-sm btn-default">
              <input type="button" name="sb3" value="更新文档HTML" style="width:90px" class="btn btn-sm btn-default"> --></td>
          </tr>
        </tbody>
      </table></td>
  </tr>
    </tbody>
</table>
</form>
<style>
  .bs-glyphicons-list li{display: inline-block;font-size: 20px;padding:6px;text-align:center;margin:3px;cursor:pointer;border:1px solid #fff;border-radius: 3px;}
  .bs-glyphicons-list li:hover{background: #eee;border:1px solid #ccc;}
  .bs-glyphicons-list li.thisicon{background: #f00;color:#fff;border:1px solid #fcc;}
</style>
<div class="modal fade setuserAuthbox" tabindex="-1" Auth="dialog" aria-labelledby="set_userAuth_jump" id='setuserAuthbox'>
  <div class="modal-dialog modal-lg">
      
    <div class="modal-content">
    <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="setuserAuthboxLabel">修改栏目图标</h4>
      </div>
    <div class="modal-body">
      <ul class="bs-glyphicons-list">      
        <li>
          <span class="glyphicon glyphicon-asterisk" aria-hidden="true"></span>
        </li>
      
        <li>
          <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-euro" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-eur" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-minus" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-cloud" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-envelope" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-glass" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-music" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-heart" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-star" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-star-empty" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-film" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-th" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-zoom-in" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-zoom-out" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-signal" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-file" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-road" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-download" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-upload" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-inbox" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-play-circle" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-flag" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-headphones" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-volume-off" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-volume-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-volume-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-qrcode" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-barcode" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tag" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-book" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-bookmark" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-print" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-camera" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-font" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-bold" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-italic" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-text-height" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-text-width" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-align-center" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-align-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-align-justify" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-list" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-indent-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-indent-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-facetime-video" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-adjust" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tint" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-share" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-check" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-move" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-step-backward" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-fast-backward" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-backward" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-play" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-pause" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-stop" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-forward" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-fast-forward" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-step-forward" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-eject" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-minus-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-screenshot" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-remove-circle" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-ban-circle" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-arrow-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-resize-full" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-resize-small" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-gift" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-leaf" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-fire" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-plane" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-random" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-comment" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-magnet" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-chevron-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-retweet" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-folder-close" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-resize-vertical" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-resize-horizontal" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-hdd" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-bell" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-certificate" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-thumbs-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-thumbs-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-hand-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-hand-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-hand-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-circle-arrow-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-circle-arrow-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-circle-arrow-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-circle-arrow-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-globe" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tasks" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-filter" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-briefcase" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-dashboard" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-paperclip" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-heart-empty" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-link" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-phone" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-pushpin" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-usd" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-gbp" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sort" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sort-by-alphabet" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sort-by-alphabet-alt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sort-by-order" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sort-by-order-alt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sort-by-attributes" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sort-by-attributes-alt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-expand" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-collapse-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-collapse-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-flash" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-record" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-save" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-open" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-saved" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-import" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-export" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-send" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-floppy-saved" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-floppy-remove" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-floppy-open" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-credit-card" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-transfer" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-cutlery" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-header" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-compressed" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-earphone" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-phone-alt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tower" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-stats" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sd-video" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-hd-video" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-subtitles" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sound-stereo" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sound-dolby" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sound-5-1" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sound-6-1" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sound-7-1" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-registration-mark" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-cloud-upload" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tree-conifer" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tree-deciduous" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-cd" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-save-file" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-open-file" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-level-up" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-copy" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-paste" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-alert" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-equalizer" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-king" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-queen" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-pawn" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-bishop" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-knight" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-baby-formula" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-tent" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-blackboard" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-bed" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-apple" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-erase" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-hourglass" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-lamp" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-piggy-bank" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-scissors" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-bitcoin" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-btc" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-xbt" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-yen" aria-hidden="true"></span>
          
        </li>
      
        <li>
          <span class="glyphicon glyphicon-jpy" aria-hidden="true"></span>
        </li>
      
        <li>
          <span class="glyphicon glyphicon-ruble" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-rub" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-scale" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-ice-lolly" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-ice-lolly-tasted" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-education" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-option-horizontal" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-option-vertical" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-modal-window" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-oil" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-grain" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-sunglasses" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-text-size" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-text-color" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-text-background" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-object-align-top" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-object-align-bottom" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-object-align-horizontal" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-object-align-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-object-align-vertical" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-object-align-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-triangle-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-triangle-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-triangle-bottom" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-triangle-top" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-console" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-superscript" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-subscript" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span>
                  </li>
      
        <li>
          <span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span>
                  </li>
        
    </ul>
    </div>
    <div class="modal-footer">
      <button type="button" class="btn btn-primary"  data-dismiss="modal"><i class="glyphicon glyphicon-ok"></i> 确定</button>
          <button type="button" class="btn btn-default" id="cannelicon" data-dismiss="modal"><i class="glyphicon glyphicon-retweet"></i> 重置</button>
    </div>
    </div>
  </div>
</div>

<!-- 添加二级菜单弹窗 -->
<div class="modal fade addsub" tabindex="-2" Auth="dialog" aria-labelledby="set_addsub_jump" id='addsub'>
  <div class="modal-dialog modal-lg">
      
    <div class="modal-content">
    <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="addsubLabel"><strong></strong>--<span>添加二级菜单</span></h4>
      </div>
      <form action="{:U(post_add_sub)}" method="post">
    <div class="modal-body">
      <div>
      栏目名称：
        <input type="text" value="" name="channelname" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        控制器：
       <input type="text" name="controller" value="" />
       &nbsp;&nbsp;&nbsp;&nbsp;
       方法：
       <input type="text" name="action"  value="" />
       <input type="hidden" name="spid" value="">
      </div>
    </div>
    <div class="modal-footer">
      <button type="submit" class="btn btn-primary" ><i class="glyphicon glyphicon-ok"></i> 确定</button>
      <button type="button" class="btn btn-default" data-dismiss="modal"><i class="glyphicon glyphicon-remove"></i> 取消</button>
    </div>
    </form>
    </div>
  </div>
</div>


<!-- 移动菜单位置弹窗 -->
<div class="modal fade moveColumn" tabindex="-2" Auth="dialog" aria-labelledby="set_moveColumn_jump" id='moveColumn'>
  <div class="modal-dialog modal-lg">
      
    <div class="modal-content">
    <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="moveColumnLabel">移动栏目位置</h4>
      </div>
      <form action="{:U('post_move_channel')}" method="post">
    <div class="modal-body">
      <div>
       <volist name="type" id="typeValue">
       <input type="radio" value="{$typeValue['scid']}" name='spid' id="spid_{$typeValue['scid']}"> {$typeValue['channelname']}
       &nbsp;&nbsp;&nbsp;&nbsp;
       </volist>
       <input type="hidden" name='scid' value="0">
      </div>
    </div>
    <div class="modal-footer">
      <button type="submit" class="btn btn-primary" ><i class="glyphicon glyphicon-ok"></i> 确定</button>
      <button type="button" class="btn btn-default" data-dismiss="modal"><i class="glyphicon glyphicon-remove"></i> 取消</button>
    </div>
    </form>
    </div>
  </div>
</div>

<div style="padding-bottom: 30px;"></div>

<script>
var id;
var icon;
  $('#setuserAuthbox').on('show.bs.modal', function (event) {
  var button = $(event.relatedTarget)
   id = button.data('id')
   icon = button.data('icon')
  $('#setuserAuthbox').find("."+icon).parent().addClass("thisicon").siblings(".thisicon").removeClass("thisicon");
})

  $(".bs-glyphicons-list li").on("click",function(){
    $(this).addClass("thisicon").siblings(".thisicon").removeClass("thisicon");
    $("#menu"+id).find(".glyphicon").attr("class",$(this).find("span").attr("class"));
    var cName=$(this).find("span").attr("class");
    $("[name='icon["+id+"]']").val(cName);
  })
  $("#cannelicon").click(function(){
    $("#menu"+id).find(".glyphicon").attr("class",icon);
    $("[name='icon["+id+"]']").val(icon);
  })
  $(".fc").on("click","img",function(){
    if($(this).attr("class")=='img2'){
      $(this).parents("tr").next().find(".suns2").hide();
      $(this).attr({"src":"__PUBLIC__/images/dedeexplode.gif","class":"img"});
    }else if($(this).attr("class")=='img'){
      $(this).parents("tr").next().find(".suns2").show();
      $(this).attr({"src":"__PUBLIC__/images/dedecontract.gif","class":"img2"});
    }
    
  })

  $("#addsub").on('show.bs.modal', function (event) {
    $('#addsub').find("form").get(0).reset();
    var button = $(event.relatedTarget)
    var id = button.data('id')
    var cname=button.data('cname');
    if(button.hasClass('addtopmen')){
       $('#addsub').find("[name=spid]").val(0);
    }else{
      $('#addsub').find("[name=spid]").val(id);
    }
    
    $('#addsubLabel strong').html(cname);
    $('#addsubLabel span').html(button.text());
  })

  $("#moveColumn").on('show.bs.modal', function (event) {
    $('#moveColumn').find("form").get(0).reset();
    var button = $(event.relatedTarget);
    var id = button.data('id');
    var spid=button.data('spid');
    $('#moveColumn').find("#spid_"+spid).get(0).checked=true;
    $('#moveColumn').find("[name=scid]").val(id);

  })
</script>
</block>
